import { call, put } from 'redux-saga/effects'
import axios from 'axios'

function* count() {
    // const data = yield axios.get("https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata")
    const data = yield call(axios.get, "https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata")
    yield put({ type: "SET_COUNT", data: data.data.message })
}

export default count